package com.clinic.entity.type;

public enum TreatmentTime {
	
	AFTER_MEAL ("AFM", "After Meal"),
	BEFORE_MEAL ("BFM", "Before Meal"),
	BEFORE_BED ("BFB", "Before Bed"),
	NOT_SPECIFIED ("NS", "Not Specified");

	private String id;
	private String label;
	
	private TreatmentTime(String id, String label) {
		this.id = id;
		this.label = label;
	}
	
	public static TreatmentTime getValueById(String id) {
		for (TreatmentTime tt : TreatmentTime.values()) {
			if (tt.getId().equals(id)) {
				return tt;
			}
		}
		return null;
	}

	public String getId() {
		return id;
	}

	public String getLabel() {
		return label;
	}

}
